#include"mycommond.h"
#define myfile "log.txt"
int main()
{
    _FILE *fp = _fopen(myfile, "w");
    if(fp == NULL) return 1;
    char *msg = "hello world\n";
    int cnt = 10;
    while(cnt){
        _fwrite(msg, strlen(msg),1,fp);
        // fflush(fp);
        sleep(1);
        cnt--;
    }

    _fclose(fp);

    return 0;
}
